<div class="page">
		<!--Page content start-->
		<div class="sidebar_page">
			<div class="content">
				<!--Galleries-->
				<div id="gallery">
					<div class="page_capt clearfix">
						<div class="fl_left">
							<h2>Galerija</h2>
                                                        <h3>{$tip_galerije|capitalize} Radovi</h3>
						</div>
						<div class="fl_right filter_opt">
							<form id="gal_filter_form" name="gal_filter_form" action="?page=galerija&tip_galerije=custom&ipp=24" method="get">
								<label for="gal_filter_term">Traži</label>
                                                                <input type="hidden" name="page" value="galerija"/>
                                                                <input type="hidden" name="tip_galerije" value="custom"/>
                                                                <input type="hidden" name="ipp" value="24"/>  
								<input class="inp_text" id="gal_filter_term" name="gal_filter_term" type="text" />
								<label for="gal_filter_sort">Sortiraj po</label>
								<select class="inp_select" id="gal_filter_sort" name="gal_filter_sort">
									<option value="broj_pregleda">broju pregleda</option>
									<option value="broj_skljoceva">broju lajkova</option>
									<option value="broj_komentara">broju komentara</option>
								</select>                                                    
								<input class="inp_btn" id="gal_filter_submit" name="gal_filter_submit" type="submit" value="Traži" />
							</form>
						</div>
					</div>
					<div class="clearfix thumb_gall">

                                            {foreach from=$GalleryPhotos item='GalleryPhoto'}
                    <div class="gal_item">
                        <a class="thumb" href="{$url}/?page=galerija_single&photo_id={$GalleryPhoto.id}" title="Pogledajte uvećanu sliku"><img src="{$media}/autori/thumbs/{$GalleryPhoto.username}/{$GalleryPhoto.slika}" alt="{$GalleryPhoto.naziv}" /></a>
                        <a class="img_det_user" href="{$url}/?page=profil&clan_id={$GalleryPhoto.ime} " title="Pogledajte profil">{$GalleryPhoto.username}</a>
                        <span class="img_det_views">{$GalleryPhoto.broj_pregleda}</span>
                        <span class="img_det_likes">{$GalleryPhoto.broj_skljoceva}</span>
                        <span class="img_det_comments">{$GalleryPhoto.broj_komentara}</span>
                    </div>
                                            {/foreach}

                </div><!--end of .thumb_gall-->
                <div class="gal_nav">
						{$paginationGallery}
                </div>
            </div>


            <!-- Page bottom blocks -->
            <div class="cols3spanL" id="botom_boxes">
                <div class="col">{include file="bottom_banners.tpl"}</div>
                <div class="col">{include file="chat.tpl"}</div>
            </div>

        </div>
        <!--Content end (.content)-->
        <div class="sidebar">{include file="sidebar_banners.tpl"}</div>
    </div>
    <!--Page content end (.sidebar_page)-->
</div>

